package cn.luckdou.system.mapper.sys_config;

import cn.luckdou.system.model.sys_config.SysConfig;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
  * 系统配置 Mapper 接口
 * </p>
 *
 * @author Dadou
 * @since 2017-08-10
 */
public interface SysConfigMapper extends BaseMapper<SysConfig> {

    @Select("select `value` from tb_sys_config where `key`=#{key};")
    String getValue(@Param("key") String key);

}